/**
 * js
 */
angular.module('mall.shopcart.impl', [
        "ngStorage"
    ])

    .config(['$stateProvider', '$urlRouterProvider',
        function ($stateProvider, $urlRouterProvider) {
            $stateProvider
                .state('mall.shopcart.impl', {
                    url: '',
                    cache: 'false',
                    templateUrl: templateprefix + 'shopcart/shopcart.html',
                    controller: 'ImplShopCartController'
                })
            ;
        }])

    //购物车控制器
    .controller('ImplShopCartController', ['$state', '$scope','MallAuthService','ShopcartService',
        function ($state, $scope,MallAuthService,ShopcartService) {
            //预下单
            dismiss();

            $scope.mall_ngburl = projectBaseUrl;
            $scope.post_order = function (order) {
                //$state.go("placeorder", {order: order});
                //更新购物车商品至服务器
               //ShopcartService.putshopcartmessg();

            }
        }
    ])
;
